<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <title>Title</title>
    <link rel="stylesheet" th:href="@{/plugins/layui/css/layui.css}" >
</head>
<body>
<div th:object="${claee}">
    <div class="layui-form-item">
    <input type="hidden" id="claeeId" name="claeeId" th:field="*{claeeId}">
    <div class="layui-inline">
        <label class="layui-form-label">班级名称</label>
        <div class="layui-input-inline layui-input-wrap">
            <input type="text" id="claeeName" name="claeeName" th:field="*{claeeName}" class="layui-input" placeholder="请输入班级名称" required>
        </div>
    </div>
</div>

    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">年级</label>
            <div class="layui-input-inline layui-input-wrap">
                <select id="gradeId" name="gradeId" th:with="grades=${@gradeService.getGradeList()}">
                    <option>请选择</option>
                    <option th:each="grade:${grades}" th:text="${grade.gradeName}" th:value="${grade.gradeId}"></option>
                </select>
            </div>
        </div>
    </div>
</div>
<script th:src="@{/js/jquery.min.js}"></script>
<script th:src="@{/plugins/layui/layui.js}"></script>
</body>
</html>